1.) Actually is my problem to get access upon the richField? Further i want to input the text in the exBox |
Re: Access rtfField / reset textbox This is actually my code: DBE rtfField1 = richField(exBox, "Name: ", "", 20, false) DBE rtfField2 = richField(exBox, "Object:", "", 20, false) void rtff(DBE) { string a1 = (string get (rtfField1)) string a2 = (string get (rtfField2)) print a1 print a2 } rtff = button(exBox, "Ok", rtff) Dxl output: {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}} \viewkind4\uc1\pard\lang1031\f0\fs20 *Adam*\par } {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}} \viewkind4\uc1\pard\lang1031\f0\fs20 *Number1*\par } I need only the "bold" text. Please Help |
Re: Access rtfField / reset textbox SystemAdmin - Wed Sep 01 07:29:24 EDT 2010 Dxl output: {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}} \viewkind4\uc1\pard\lang1031\f0\fs20 *Adam*\par } {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}} \viewkind4\uc1\pard\lang1031\f0\fs20 *Number1*\par } I need only the "bold" text. Please Help
The richField DBEs contain rich Text, so the "rich Text" chapters in the DXL help will be useful.
for rt in a1 do {print rt.text "\n"}
for rt in a2 do {print rt.text "\n"}
instead of your "print" statements. |